class Coder {
  constructor(name, number) {
    this.name = name;
    this.number = number;
  }
  sayHi() {
    console.log(`姓名： ${this.name},学号: ${this.number}`);
  }
}

// 创建一个实例
const xiaLuo = new Coder("夏洛", 100);

console.log(xiaLuo.name);
console.log(xiaLuo.number);
console.log(xiaLuo.sayHi());
